Input: Sentence: 'A bunch of birds gathered in the shallow end of a pond'. Count the number of nouns in this sentence.
Output: 4