$wordCount
The$wordCount operator counts the number of words in a string.
Input
- A single string value
Output
- The number of words in the input string
Examples
Count Words in Sentence
6
Count Words in Single Word
1
Count Words in Empty String
0
$wordCount operator counts the number of words in a string.
6
1
0