Naming - this takes in a list and returns a map of counts; maybe something like `listToCounts`