Input: Sentence: 'A small kitchen counter with appliances and a shelf'. Count the number of nouns in this sentence.
Output: 4