Input: Sentence: 'A bunch of planes flying close with trails of smoke'. Count the number of nouns in this sentence.
Output: 4