Input: Sentence: 'Two small birds are resting on a tree branch'. Count the number of nouns in this sentence.
Output: 3