Input: Sentence: 'The remains of a military truck and railway carriage'. Count the number of nouns in this sentence.
Output: 4