Input: Sentence: 'A man flying a kite in a cloudy sky'. Count the number of nouns in this sentence.
Output: 3