Input: Sentence: 'Black and white photograph of a park bench overlooking water'. Count the number of nouns in this sentence.
Output: 4