TASK DEFINITION: In this task, you need to count the occurrences of the given word in the given sentence.
PROBLEM: Sentence: 'a commuter train running under a bridge along urban tracks'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 2

PROBLEM: Sentence: 'a small dog wearing a bright red bow tie as a collar'. Count the occurrences of the word 'a' in the given sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a couple of cats laying on top of a bed'. Count the occurrences of the word 'laying' in the given sentence.

SOLUTION:
1