Input: Sentence: 'a brown bird with green foliage in front'. Count the number of nouns in this sentence.
Output: 3