In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a man is riding in a cart pulled by a horse'. Count the occurrences of the word 'man' in the given sentence.