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

Example Input: Sentence: 'a horse pulls a cart with people sitting on it'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'An orange suitcase sits alone on a city street'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'A man poses for a picture while on skis on the hill'. Count the number of nouns in this sentence.
Example Output:
4