Word count function for just words in the article

Is there a way to count the number of words in an article instead of the entire page? E.g. count all words inside

tags?

You can retrieve the text in the tag using XpathOnUrl and the use this Excel formula to count the words: https://exceljet.net/formula/count-total-words-in-a-cell