Potential solution to word count challenge problem.