Get exact count of number of nodes in the graph.