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

Input: Consider Input: Sentence: 'Two birds perched on top of a light pole'. Count the number of nouns in this sentence.

Output: 3

Input: Consider Input: Sentence: 'Cupcakes part iced part not with a walnut on top'. Count the number of verbs in this sentence.

Output: 0

Input: Consider Input: Sentence: 'an image of a night life scene that has cars passing by fast'. Count the number of verbs in this sentence.
Output: 2