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