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

Input: Consider Input: Sentence: 'there are five people on surf boards in the ocean'. Count the number of nouns in this sentence.

Output: 4

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

Output: 5

Input: Consider Input: Sentence: 'A room that has vases/urns on display'. Count the number of nouns in this sentence.
Output: 4