There are 8 functions, including 6 surjective and zero injective functions.