completed wordcount.py using regular expressions