Input: Sentence: 'A woman rides on a horse drawn carriage'. Count the number of nouns in this sentence.
Output: 3