Input: Sentence: 'People wearing old Western-styled dress stand aside the road as a horse-drawn carriage in a parade passes by'. Count the number of nouns in this sentence.
Output: 6