Input: Sentence: 'A kitchen containing beige and wood cabinets and a white oven'. Count the number of nouns in this sentence.
Output: 4