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

Example Input: Sentence: 'A man skateboarding through an obstacle course with cones'. Count the number of nouns in this sentence.
Example Output: 4

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 white truck parked next to a picket fence surrounding a house'. Count the number of nouns in this sentence.
Example Output:
4