Input: Sentence: 'two brown black and white horse are pulling some people in a cart'. Count the number of nouns in this sentence.
Output: 3