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

Input: Consider Input: Sentence: 'A person playing tug of war with a dog and a frisbee'. Count the number of nouns in this sentence.

Output: 5


Input: Consider Input: Sentence: 'A person sitting on a couch with a laptop'. Count the number of nouns in this sentence.

Output: 3


Input: Consider Input: Sentence: 'A nighttime view of a marina filled with boats'. Count the number of verbs in this sentence.


Output: 1