TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: 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.

SOLUTION: 3

PROBLEM: Sentence: 'a woman and a cat are sitting at a laptop'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a sidewalk with trimmed hedges and signage'. Count the occurrences of the word 'hedges' in the given sentence.

SOLUTION:
1