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

Example Input: Sentence: 'Nighttime lights and traffic along a city street'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A young man on a skateboard with hand protectors'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'a woman at a carnival ordering food to eat'. Count the number of nouns in this sentence.
Example Output:
3