TASK DEFINITION: In this task, you need to count the number of nouns/verbs in the given sentence.
PROBLEM: Sentence: 'A small white and brown dog carrying a red frisbee'. Count the number of nouns in this sentence.

SOLUTION: 2

PROBLEM: Sentence: 'A tennis player is trying to hit the ball'. Count the number of nouns in this sentence.

SOLUTION: 3

PROBLEM: Sentence: 'A bed in a bedroom  that has lots of things sitting on top of it'. Count the number of nouns in this sentence.

SOLUTION:
5