Input: Sentence: 'a black and white bird with red eyes sitting on a tree branch'. Count the number of nouns in this sentence.
Output: 4