completed wordcount program