Added class to get vertices and edges counts