Input: Sentence: 'A duck that has just gotten out of a pond'. Count the number of nouns in this sentence.
Output: 2