getPrimitiveCount

Get the number of primitives in the given entity.