If we have $k,\;n,\;m\in\mathbb{N}: m\leq n$, how to determine $|\{ f: [k] \rightarrow[n] :|f([k])|=m \}|$. Were we have $ [n]:=\{1,2,...,n\}.$
So firstly, there should be a $ \binom{n}{m} $ ways to choose a subset of $[n]$ with the cardinality $m$.
But this is where I am stuck, I would appreciate any help for further calcualtion.