Added countEdges to Graph