Use each_with_object instead of reduce

Saves having to return the word_counts object each iteration!