add word count implementations