Write an Erlang program that counts the word frequencies in