Input: Sentence: 'TWO PEOPLE SITTING IN A CARRIAGE BEING PULLED BY A HORSE'. Count the number of nouns in this sentence.
Output: 2