In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a room with a bed a rug and several pictures on the wall'. Count the occurrences of the word 'and' in the given sentence.