Input: Sentence: 'A street scene with a horse pulling a carriage'. Count the number of nouns in this sentence.
Output: 4