Input: Sentence: 'A purple pickup truck parked at a gasoline pump'. Count the number of nouns in this sentence.
Output: 4