Input: Sentence: 'A motor cycle parked near a wooden bench'. Count the number of nouns in this sentence.
Output: 3