count how many objects are in the group