Input: Sentence: 'an airplane with a flower painted on the side'. Count the number of nouns in this sentence.
Output: 3