nvertices function

Count the number of vertices/edges/slices in a graph