Input: Sentence: 'A blue and silver motorcycle parked on a beach'. Count the number of nouns in this sentence.
Output: 2