Input: Sentence: 'Two yellow plates have a red bird on them while one has a yellow bird on it'. Count the number of nouns in this sentence.
Output: 3