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

Input: Consider Input: Sentence: 'A giraffe standing on the grass plans in Africa'. Count the number of nouns in this sentence.

Output: 3


Input: Consider Input: Sentence: 'A photo of a TV dinner beside a computer and action figures'. Count the number of nouns in this sentence.

Output: 6


Input: Consider Input: Sentence: 'a truck has pulled off the road to look at an elephant'. Count the number of verbs in this sentence.


Output: 2