Input: Sentence: 'A photo of a train coming to a train platform'. Count the number of nouns in this sentence.
Output: 4