The WORDS(t) function takes an arbitrary token text string, processes the text tokens, and then returns the number of words in the string.
WORDS(%SystemClipboard%)