Input: Sentence: 'A cat sitting by a glass of wine'. Count the number of nouns in this sentence.
Output: 3