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

Input: Consider Input: Sentence: 'Several people in beach chars while two children fly a kite on the sea shore'. Count the number of verbs in this sentence.

Output: 1

Input: Consider Input: Sentence: 'Group of pilots displaying protest messages behind fenced area'. Count the number of nouns in this sentence.

Output: 4

Input: Consider Input: Sentence: 'A picture of a black cat sitting on a young man'. Count the number of nouns in this sentence.
Output: 3