Input: Sentence: 'A dish towel hangs from the rack of an oven'. Count the number of nouns in this sentence.
Output: 4