modified mapper and reducer to write output to single file containing
aggregate count of types of advt