CountWords( Name )
The number of words in the specified Text object or variable.
Name – set the name of object in which you want to count the number of words. Name can either be the name of a Text object or of a variable name. The name must NOT be surrounded by quote marks. This parameter is required.
This function will return the number of words in the specified Text object or named variable.