Input: Sentence: 'A couple of people sitting on a bench in front of a building'. Count the number of nouns in this sentence.
Output: 5