Lemma. Cardinality of the set of functions [00KH]

For all finite sets A and B, we have \#{\mathopen {}\left (A\to B\right )\mathclose {}} = \#B^{\#A}.