Returns the number of words in the specified string.
- macOS 10.0+
The string to count the words in.
The language of the string.
The number of words in the string or
-1 if word counting is unavailable or has not occurred for some reason.
nil, the current selection in the Spelling panel’s pop-up menu is used.