Counting ordered partition

An ordered partition of $m$ of size $n$ is a sequence of non-negative integers $(m_1,m_2,\ldots, m_n)$ such that $m_1+m_2+\ldots+m_n = m$. There are $\pmat{m+n-1\\m}$ such partitions. (Derivation)

Given $n\in\N$ and $n_1,n_2,\ldots,n_k\in\N$ where $n_1+n_2+\ldots+n_k=n$, an ordered partition of $\set{1,2,\ldots,n}$ is a sequence of subsets $(S_1, S_2, \ldots, S_k)$ such that $|S_i| = n_i$ for all $i$ and $S_1\union S_2\union\ldots\union S_k = \set{1,2,\ldots,n}$. The number of such partitions is $$ \pmat{n \\ n_1,n_2,\ldots,n_k} = \frac{n!}{n_1!n_2!\ldots n_k!} $$ by a similar argument to this.