First working attempt at elixir word count