completed the first assignment, wordcount.py