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

Example Input: Sentence: 'A black horse that is tied up eating grass'. Count the number of nouns in this sentence.
Example Output: 2

Example Input: Sentence: 'A subway train next to the boarding platform'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A small white kitchen with stainless steel refrigerator'. Count the number of nouns in this sentence.
Example Output:
3