Input: Sentence: 'a brightly decorated living room with pretty flowers'. Count the number of nouns in this sentence.
Output: 3