Input: Sentence: 'two men on different styles of motorcycles'. Count the number of nouns in this sentence.
Output: 3