Input: Sentence: 'a close up of a pile of luggage near a train'. Count the number of nouns in this sentence.
Output: 4