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

Example Input: Sentence: 'a woman on a court swinging a tennis racket'. Count the occurrences of the word 'a' in the given sentence.
Example Output: 3

Example Input: Sentence: 'a truck and luggage sitting on a cart by the dining saloon car of a train'. Count the occurrences of the word 'a' in the given sentence.
Example Output: 3

Example Input: Sentence: 'a man in a jacket with a white hat is sitting alone on a bench'. Count the occurrences of the word 'on' in the given sentence.
Example Output:
1