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

Input: Consider Input: Sentence: 'A dog sits on a bed next to a cellphone and a pen'. Count the number of nouns in this sentence.

Output: 4


Input: Consider Input: Sentence: 'A photo take though glass of a polar pear diving under water'. Count the number of verbs in this sentence.

Output: 1


Input: Consider Input: Sentence: 'A path leading to a covered area in a park'. Count the number of verbs in this sentence.


Output: 1