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

Input: Consider Input: Sentence: 'A person is walking with their dog in a backpack in the park'. Count the number of nouns in this sentence.

Output: 4


Input: Consider Input: Sentence: 'a bathroom with a large mirror with colorful rim'. Count the number of nouns in this sentence.

Output: 3


Input: Consider Input: Sentence: 'A pair of zebras graze under a tree at the edge of a grassy field'. Count the number of verbs in this sentence.


Output: 1