Input: Sentence: 'A cup that is on a kitchen counter'. Count the number of nouns in this sentence.
Output: 3