Input: Sentence: 'A lone bird perched on a branch in a wooded area'. Count the number of nouns in this sentence.
Output: 3