How to determine right vertex count for mesh?
List of objects in scene with counts (verts, faces, tris)? 

I think a suitable solution can be found here. They use a len method which I'm sure might be useful in your case.