Counting, Modular Counting And Graph Homomorphisms