Input: Sentence: 'A dog in the window of a house looking out'. Count the number of nouns in this sentence.
Output: 3