Frequency analysis via mapreduce