Input: Sentence: 'A train depot with one train in the fog'. Count the number of nouns in this sentence.
Output: 4