In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'a two layer white and red cake with a knife through the middle'. Count the occurrences of the word 'two' in the given sentence.