Input: Sentence: 'A cat with glasses that have eyes as shades'. Count the number of nouns in this sentence.
Output: 4