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

Input: Consider Input: Sentence: 'A boat flies its flag while sailing just off a pier'. Count the number of verbs in this sentence.

Output: 2

Input: Consider Input: Sentence: 'people standing walking down a street while holding onto colorful umbrellas'. Count the number of nouns in this sentence.

Output: 3

Input: Consider Input: Sentence: 'A cheetah, cow, horse, and woman looking down a hallway'. Count the number of nouns in this sentence.
Output: 5