In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a brown bear walks through the shade of many trees'. Count the occurrences of the word 'bear' in the given sentence.