Input: Sentence: 'An old brick building contains an appliance store'. Count the number of nouns in this sentence.
Output: 4