Tulip Interfaces Interview Question

Counting the words that exist in a string.