Count and compare objects