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

Input: Consider Input: Sentence: 'A moose is standing out by a river'. Count the number of verbs in this sentence.

Output: 1

Input: Consider Input: Sentence: 'a small black dog is playing with a green toy'. Count the number of nouns in this sentence.

Output: 2

Input: Consider Input: Sentence: 'A golden block sitting in a room on red carpeting'. Count the number of nouns in this sentence.
Output: 3