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