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