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

Example Input: Sentence: 'Two birds perched on top of a light pole'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'toilet in small space with blue and white tile'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'Prepared dough placed in a deep fryer on a countertop'. Count the number of verbs in this sentence.
Example Output:
2