Input: Sentence: 'A fridge is shown with many magnets covering it'. Count the number of nouns in this sentence.
Output: 2