Input: Sentence: 'A bird is perched atop a computer monitor'. Count the number of nouns in this sentence.
Output: 3