Input: Sentence: 'a man is riding a red motorcycle on the street'. Count the number of nouns in this sentence.
Output: 3