Input: Sentence: 'three bags of luggage on the floor'. Count the number of nouns in this sentence.
Output: 3