doc_word_count
doc_word_count ([doc[, flags]])
Returns the number of words in the current selection or whole document if no selection has been made. The message "nnn words in the current selection" is written to the status bar if not suppressed.
• If the doc value is omitted, the default is the current doc.
• flags — Flag bits ORed together, with a default of 0. Initially, only bit 1 is supported. If set, the message is shown, else it is suppressed.