Input: Sentence: 'A dog laying on the side of a car door'. Count the number of nouns in this sentence.
Output: 4