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

Example Input: Sentence: 'black and white photo of a person with an umbrella on a dock'. Count the occurrences of the word 'a' in the given sentence.
Example Output: 2

Example Input: Sentence: 'a bedroom with a bed next to a closet'. Count the occurrences of the word 'a' in the given sentence.
Example Output: 3

Example Input: Sentence: 'a bedroom complete with bunk beds chairs and a desk'. Count the occurrences of the word 'with' in the given sentence.
Example Output:
1