Added nodeCount() and edgeCount() functions to graph