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