Input: Sentence: 'An airplane flying through the sky pouring out lots of smoke'. Count the number of nouns in this sentence.
Output: 4