My implementation of the wordCount's homework

Help me find errors so I can better my program!