+utility to count objects