Input: Sentence: 'Two birds perched on top of a light pole'. Count the number of nouns in this sentence.
Output: 3