Input: Sentence: 'A couple of people on a horse pulled carriage'. Count the number of nouns in this sentence.
Output: 4