Input: Sentence: 'A view of the capitol building, in front of a park'. Count the number of nouns in this sentence.
Output: 5