Added a command to count the number of words in a buffer.