Input: Sentence: 'A photograph of breads and drinks in the cooler'. Count the number of nouns in this sentence.
Output: 4