in reply to counting words in string

Thank you all for responding, you've been mot helpful.