Input: Sentence: 'A person holding an umbrella in front of a building'. Count the number of nouns in this sentence.
Output: 4