In this task, you need to count the occurrences of the given word in the given sentence.

Example Input: Sentence: 'close up of a garden with shrubs growing'. Count the occurrences of the word 'of' in the given sentence.
Example Output: 1

Example Input: Sentence: 'a person hugging another person wearing a bow tie'. Count the occurrences of the word 'person' in the given sentence.
Example Output: 2

Example Input: Sentence: 'a man with a small dog sitting in front of him in a kitchen'. Count the occurrences of the word 'in' in the given sentence.
Example Output:
2