I have an array containing several hundred objects, each of which has a category. I wish to return an object that lists out the categories with a count of the number of item