Input: Sentence: 'A black and white image of a park bench'. Count the number of nouns in this sentence.
Output: 3