How to get the vertex data of a linked object?

I linked in a mesh from a separate Blend file, and now I want to get it’s vertex count and triangle count. I was planning on doing something like object.data.vertices but this isn’t possible because the object’s type is EMPTY. Any ideas?

if i link a mesh object, its type is ‘MESH’, not ‘EMPTY’. Do you have the correct, linked object selected and active?

Sorry about that, what I wrote in my original post was wrong. I actually linked a Group object, and need to get the vertex/triangle count from the meshes inside the group.

like this?

sum(len(ob.data.vertices) for ob in bpy.context.object.dupli_group.objects)

Yes, that’s exactly what I want. Thanks a lot for the help!