count unique words in array exercise