Input: Sentence: 'A tennis player is on a blue and green court'. Count the number of nouns in this sentence.
Output: 3