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

Example Input: Sentence: 'a person with a scarf on their head sitting on a bench next to flowers with their hand raised'. Count the occurrences of the word 'a' in the given sentence.
Example Output: 3

Example Input: Sentence: 'a sidewalk with trimmed hedges and signage'. Count the occurrences of the word 'hedges' in the given sentence.
Example Output: 1

Example Input: Sentence: 'a dog lying on a bed in a small bedroom'. Count the occurrences of the word 'a' in the given sentence.
Example Output:
3