Grouping and Counting Numbers