Input: Sentence: 'A small plane flying through a gray sky'. Count the number of nouns in this sentence.
Output: 2