Input: Sentence: 'people flying very high and waving their hands'. Count the number of nouns in this sentence.
Output: 2