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

Example Input: Sentence: 'A prom date is posing for a picture while the guy looks at the girl'. Count the number of verbs in this sentence.
Example Output: 2

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: 'A cyclist pedals past a flock of birds perched on a grating'. Count the number of nouns in this sentence.
Example Output:
5