Input: Sentence: 'The train is sitting under lots of wires and poles'. Count the number of nouns in this sentence.
Output: 4