Input: Sentence: 'A woman in a suit and tie is on top of a brown horse that is sweating'. Count the number of nouns in this sentence.
Output: 5