Motional Interview Question

Find word occurrence count in a sentence.