add word count cpp