This is a very simple class that can be used to count the number of words in a text string.
It normalizes the text string converting several types of word separators into spaces. Then it splits the string into groups of characters separated by spaces.
The class returns the number of groups of characters that contain at least one letter or digit to skip counting groups of characters made only of punctuation or other types of characters.