In this task, you need to count the number of nouns/verbs in the given sentence.

[EX Q]: Sentence: 'A black horse that is tied up eating grass'. Count the number of nouns in this sentence.
[EX A]: 2

[EX Q]: Sentence: 'A person surfing under a wave in the ocean'. Count the number of nouns in this sentence.
[EX A]: 3

[EX Q]: Sentence: 'A medicine cabinet that is on a wall in a room'. Count the number of nouns in this sentence.
[EX A]:
4