In this task, you need to count the occurrences of the given word in the given sentence.
Sentence: 'there is a small black bird next to a pizza box'. Count the occurrences of the word 'to' in the given sentence.