Input: Sentence: 'A duckling swims in a pond and catches some food'. Count the number of nouns in this sentence.
Output: 3