How can I count the number of different items in a column and return the different counts in another column?