Input: Sentence: 'A two horse carriage rides along a brick road'. Count the number of nouns in this sentence.
Output: 5