Count the number of different types of node junctions (connections between four nodes) in the graph.