MapReduce Pseudocode
MapReduce groups everything by key, in this case the word. So the reducer gets the word, followed by a list of 1's. The length of that list is the number of times this word occurs in the text. The reducers sums up the ones to count the word.