Hi, to fund out how many words there are in your word document look on the bottom left of word:
and you can get all of the words from word to indesing by importing the document or copying and pasting.
hope this answers your questions.
Based on the tags it seems the OP is interested in finding this through the sdk. This was asked and answered before as well, i have mentioned the link for the previous discussion
In grep use
And replace with
That will find a full-length word (including any manually inserted hyphens for example) - and replace each with what it found which is $0 means.
It will then give you a pop up of all the words found, and that's your word count.
What is different from this same question you asked before and marked a solution as correct as well.