Input: Sentence: 'Three motorcycles parked next to each other with two men on one'. Count the number of nouns in this sentence.
Output: 2