Input: Sentence: 'The living room of a home in the midst of remodeling'. Count the number of nouns in this sentence.
Output: 5