In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a child laying on a bed with his head hanging up side down and a teddy bear leaning against the bed'. Count the occurrences of the word 'bed' in the given sentence.