TASK DEFINITION: In this task, you need to count the number of nouns/verbs in the given sentence.
PROBLEM: Sentence: 'A train on a track in the middle of a neighborhood'. Count the number of nouns in this sentence.

SOLUTION: 4

PROBLEM: Sentence: 'A person playing tug of war with a dog and a frisbee'. Count the number of nouns in this sentence.

SOLUTION: 5

PROBLEM: Sentence: 'An older couple sits closely on a wooden bench'. Count the number of nouns in this sentence.

SOLUTION:
2