count Words
Returns the number of words in the string without creating intermediate objects.
Parameters
word Separator
a function that returns true if the character is a word separator
Returns the number of words in the string without creating intermediate objects.
a function that returns true if the character is a word separator