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: 'A baseball player holding  bat while standing on a field'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'In a men's bathroom, there are photos of men over the urinals'. Count the number of nouns in this sentence.
Example Output:
5