Returns the map of amount of tasks selected by each category.
1 table
the map, where key is the category ID, and the value is the amount of tasks within that category that were selected.