Input: Sentence: 'A ladder is set next to an oven in a kitchen'. Count the number of nouns in this sentence.
Output: 3