Input: Sentence: 'Cat sitting on a towel on a chair at a table'. Count the number of nouns in this sentence.
Output: 4