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

Example Input: Sentence: 'a messy room with clothes and a computer'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'Different assortment of noodles and vegetables sitting in a pot and tray'. Count the number of verbs in this sentence.
Example Output: 2

Example Input: Sentence: 'Cutting board on table with chopped vegetables and jar of dressing'. Count the number of nouns in this sentence.
Example Output:
4