Classify and sort up to ten objects into categories by an attribute; count the number of objects in each category and sort the categories by count.