Input: Sentence: 'A motor bike parked on a sidewalk near a garden'. Count the number of nouns in this sentence.
Output: 4