Cardinality of injective, surjective and bijective functions