Input: Sentence: 'Two Mallards float and drink water in a shallow pool'. Count the number of nouns in this sentence.
Output: 2