Input: Sentence: 'A blurry photo of a train riding along'. Count the number of nouns in this sentence.
Output: 3