Input: Sentence: 'Two horses pushing a carriage with a man sitting on it'. Count the number of nouns in this sentence.
Output: 3