Input: Sentence: 'A photo taken looking outside an airplane window'. Count the number of nouns in this sentence.
Output: 3