finished wordCount func