Input: Sentence: 'A family walking towards a very small airplane'. Count the number of nouns in this sentence.
Output: 2