In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a photo of a man wearing glasses holding a plate of cake'. Count the occurrences of the word 'man' in the given sentence.