Count the objects.