Salesforce interview question

Explain how you would implement "Word Count".