Input: Sentence: 'A shelf with a mechanical appliance for sale'. Count the number of nouns in this sentence.
Output: 3