In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'two people are riding an elephant through the water'. Count the occurrences of the word 'riding' in the given sentence.