word count and unit tests for it