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

Input: Consider Input: Sentence: 'a group of people on surf board ride on some snow'. Count the number of nouns in this sentence.

Output: 5

Input: Consider Input: Sentence: 'Street signs with a cartoon policeman in Shanghai'. Count the number of verbs in this sentence.

Output: 0

Input: Consider Input: Sentence: 'A photograph taken from an airplane window while in flight'. Count the number of verbs in this sentence.
Output: 1