Input: Sentence: 'Buses are along the edge of a road next to trees'. Count the number of nouns in this sentence.
Output: 4