Input: Sentence: 'A view of birds gliding through the air'. Count the number of nouns in this sentence.
Output: 3