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

Example Input: Sentence: 'Two horses are walking a carriage through the streets'. Count the number of verbs in this sentence.
Example Output: 1

Example Input: Sentence: 'a person eating a hot dog next to other people'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'A large pizza sitting on top of a pan covered in cheese'. Count the number of nouns in this sentence.
Example Output:
4