Input: Sentence: 'A kite flying next to a palm tree in a blue sky'. Count the number of nouns in this sentence.
Output: 4