Task: Program Execution
Input (English): Sentence: 'a man is riding in a cart pulled by a horse'. Count the occurrences of the word 'man' in the given sentence.
Output (English): 1