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

Example Input: Sentence: 'A man sleeping on a wooden bench next to a bag of luggage'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A park with not much shade and a kite flying'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'A Train with yellow and red caboose cars passing through a town'. Count the number of nouns in this sentence.
Example Output:
3