Input: Sentence: 'A street that leads to a dead end next to trees'. Count the number of nouns in this sentence.
Output: 3