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

Example Input: Sentence: 'a window is next to a toilet in a bathroom'. 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: 'A small kitchen knife on top of a sliced carrot'. Count the number of nouns in this sentence.
Example Output:
4