Input: Sentence: 'A small bird sitting on a tree branch'. Count the number of nouns in this sentence.
Output: 3