Input: Sentence: 'A yellow vehicle in front of another near a brick building'. Count the number of nouns in this sentence.
Output: 4