Input: Sentence: 'Horse running in the green in a polo match'. Count the number of nouns in this sentence.
Output: 4