Input: Sentence: 'A golden block sitting in a  room on red carpeting'. Count the number of nouns in this sentence.
Output: 3