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

Input: Consider Input: Sentence: 'A couple of boats traveling down a river'. Count the number of nouns in this sentence.

Output: 3

Input: Consider Input: Sentence: 'A large amount of bananas grouped together in a line'. Count the number of nouns in this sentence.

Output: 3

Input: Consider Input: Sentence: 'a green white and red jet at an airport'. Count the number of nouns in this sentence.
Output: 2