Count events and include missing categories
countBy
Map.merge
groupingBy and eachCount
array_count_values