Added an optimized count to VertexSetRDD.