Input: Sentence: 'The jar that is left out on the table is dirty'. Count the number of nouns in this sentence.
Output: 2