TASK DEFINITION: In this task, you need to count the number of nouns/verbs in the given sentence.
PROBLEM: Sentence: 'A person is walking with their dog in a backpack in the park'. Count the number of nouns in this sentence.

SOLUTION: 4

PROBLEM: Sentence: 'A baseball game in progress with the batter in the middle of the swing'. Count the number of nouns in this sentence.

SOLUTION: 6

PROBLEM: Sentence: 'a man sitting at a table outside a cafe talking on a phone'. Count the number of nouns in this sentence.

SOLUTION:
4