solution for WordCount

completed solution