Input: Sentence: 'Two cakes sit on a countertop cooling rack'. Count the number of nouns in this sentence.
Output: 3