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

Input: Consider Input: Sentence: 'Several zebras and other animals grazing in a field'. Count the number of nouns in this sentence.

Output: 3

Input: Consider Input: Sentence: 'A train car with four beds next to a window'. Count the number of nouns in this sentence.

Output: 4

Input: Consider Input: Sentence: 'A waffle and chicken sandwich with syrup on top'. Count the number of nouns in this sentence.
Output: 5