Input: Sentence: 'Brown and black horses have a windmill behind them'. Count the number of nouns in this sentence.
Output: 2