Input: Sentence: 'A white airplane with a staircase leading to its door'. Count the number of nouns in this sentence.
Output: 3