getInstanceCount

Get the number of instances in the given entity.