Input: Sentence: 'A large dog wearing an orange safety vest'. Count the number of nouns in this sentence.
Output: 3