Input: Sentence: 'A car parked in front of a building'. Count the number of nouns in this sentence.
Output: 3