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

Example Input: Sentence: 'A man riding his surfboard through the waves'. Count the number of verbs in this sentence.
Example Output: 1

Example Input: Sentence: 'Four small broccoli plants in a brown planter'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'A couple is walking through a carnival and passing a large assortment of stuffed animals'. Count the number of nouns in this sentence.
Example Output:
4