Word counterc app

I am making a desktop app which can count words, sentences, paragraph, special characters and characters.

How can I make such a app?

I don’t know how to count words, characters, etc.

As a gross simplification:

Return tempString.CountFields(" ") 'Count the words

Return tempString.Length 'Count the letters

see also

and examples
\Xojo2021r31\Example Projects\Worker\WordCounter

Return tempString.ReplaceLineEndings(EndOfLine).CountFields(EndOfLine) 'Sort of counts the paragraphs