add the word counter directive