Input: Sentence: 'A plane parked next to a truck next to a house'. Count the number of nouns in this sentence.
Output: 3