Use each_with_object in #word_counter, map in #initialize