TASK DEFINITION: In this task, you need to count the number of nouns/verbs in the given sentence.
PROBLEM: Sentence: 'A passenger train going by on the tracks'. Count the number of nouns in this sentence.

SOLUTION: 3

PROBLEM: Sentence: 'A red open fire hydrant spewing water from it'. Count the number of nouns in this sentence.

SOLUTION: 3

PROBLEM: Sentence: 'a bear smelling something in the middle of a street'. Count the number of nouns in this sentence.

SOLUTION:
3