Input: Sentence: 'A silver and yellow engine is followed by several train cars'. Count the number of nouns in this sentence.
Output: 4