TASK DEFINITION: In this task, you need to count the number of nouns/verbs in the given sentence.
PROBLEM: Sentence: 'A dog sits on a bed next to a cellphone and a pen'. Count the number of nouns in this sentence.

SOLUTION: 4

PROBLEM: Sentence: 'A woman holding a tennis racquet on a tennis court'. Count the number of nouns in this sentence.

SOLUTION: 5

PROBLEM: Sentence: 'A large funny dog is lounging on his owner's bed'. Count the number of nouns in this sentence.

SOLUTION:
3