MathKindergartenSort, Count and Order the GroupsSort objects into given categories, count each group and order the groups by count