Input: Sentence: 'A photo of a duck with an odd shaped beak'. Count the number of nouns in this sentence.
Output: 3