Input: Sentence: 'Plane on runway with a gate approaching it'. Count the number of nouns in this sentence.
Output: 3