Provide utility to count number of objects with same label.