Copy in base code from character-count

Change character -> word. Still need to update _computeCount to count
words instead of characters.