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

Input: Consider Input: Sentence: 'A view of a laptop being held by someone laying in bed'. Count the number of nouns in this sentence.

Output: 3


Input: Consider Input: Sentence: 'A man laughs while sitting on a bench'. Count the number of nouns in this sentence.

Output: 2


Input: Consider Input: Sentence: 'Group of people standing on the deck to watch a group of giraffes'. Count the number of verbs in this sentence.


Output: 2