initial solution ruby/word-count