In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a man on a motorcycle riding by an old rundown town and an animal on the side of the road'. Count the occurrences of the word 'on' in the given sentence.