Input: Sentence: 'A abandoned yellow and blue train on tracks'. Count the number of nouns in this sentence.
Output: 2