You can split the text using tokenat and tokencount expressions. You will probably need to get rid of all punctuation before doing that (use replace expression).
You can't store multiple words in one variable, you should use an array.
To check the length of each word use len expression.
Also, check this demo: