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

Input: Consider Input: Sentence: 'a man in a white shirt laying in bed'. Count the number of nouns in this sentence.

Output: 3


Input: Consider Input: Sentence: 'a counter that has silverware and glasses on top of it'. Count the number of verbs in this sentence.

Output: 1


Input: Consider Input: Sentence: 'A herd of African elephants gather at a water hole'. Count the number of nouns in this sentence.


Output: 4