Motif Counter for 3 node motifs implemented