How many functions are there from a set with $n$ elements to another with $m$ elements?
The answer is $m^n$ but this doesn't seem to account for the fact that an element might not have an image by that function, right?
For each element of the domain of the function, there are $m+1$ ways of it being "mapped"; the $1$ accounts for it not being mapped. So shouldn't the result be $(m+1)^n$?