Input: Sentence: 'A person in a red uniform on a red motorcycle'. Count the number of nouns in this sentence.
Output: 3