Input: Sentence: 'A dog poking its head of the car window is seen in the side mirror'. Count the number of nouns in this sentence.
Output: 6