erlang - word_count fixes, use dict module