Syntactic sugar for generating frequency maps using the mongodb aggregation framework