Input: Sentence: 'three trains on train tracks with a sky background'. Count the number of nouns in this sentence.
Output: 5