Given the task definition and input, reply with output. In this task, you need to count the occurrences of the given word in the given sentence.

Sentence: 'a cake with chocolate frosting and a cake with white frosting are each in an open box'. Count the occurrences of the word 'frosting' in the given sentence.
2