Input: Sentence: 'A cook is taking something out of an oven'. Count the number of nouns in this sentence.
Output: 2