Input: Sentence: 'the arm of a sofa and a little fridge with a lamp'. Count the number of nouns in this sentence.
Output: 4