Input: Sentence: 'A kitchen counter with dirty dishes and empty wine bottles on it'. Count the number of nouns in this sentence.
Output: 5