Fixup word_count.exs based on other people's code

I didn't even think of using multiple methods before (blame it on being
unfamiliar with the language, I guess), and it looks way cleaner now.
Additionally passing a method into the Enum.reduce call instead of
specifying it inline feels like the right way to go.