title: How do I calculate the number of times a word occurs in a sentence?
body: <p>So I've been learning Python for some months now and was wondering how I would go about writing a function that will count the number of times a word occurs in a sentence. I would appreciate if someone could please give me a step-by-step method for doing this.</p>