Can somebody explain to me how to do the follow please:

1)Compute the number of functions from a set with n elements to a set with m elements.

and secondly,

2) compute the number of one-to-one functions (injections) from a set with n elements to a set with m elements.

Can someone tell me how they get the answer, i really want to understand this.

Thanks guys.