WordCount code using MapReduction