Input: Sentence: 'A pizza sits on a cooling rack to cool'. Count the number of nouns in this sentence.
Output: 2