Input: Sentence: 'The cat is getting all wrapped up in the drapes'. Count the number of nouns in this sentence.
Output: 2