Input: Sentence: 'The mountains sit in the background of this quaint town'. Count the number of nouns in this sentence.
Output: 3