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

Input: Consider Input: Sentence: 'A passenger train going by on the tracks'. Count the number of nouns in this sentence.

Output: 3


Input: Consider Input: Sentence: 'Motorcycles are parked alongside the circle driveway on a sunny day'. Count the number of nouns in this sentence.

Output: 4


Input: Consider Input: Sentence: 'A man walking past a wooden bench near a building'. Count the number of nouns in this sentence.


Output: 3