In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a dingy yellow tiled bathroom is shown in dim light'. Count the occurrences of the word 'dim' in the given sentence.