Input: Sentence: 'A pink sprinkle donut resting on the dashboard of a car'. Count the number of nouns in this sentence.
Output: 4