Input: Sentence: 'A line of appliances located in a barn with a hay floor'. Count the number of nouns in this sentence.
Output: 5