Input: Sentence: 'A cardboard sign is stapled onto a tree on a street'. Count the number of nouns in this sentence.
Output: 4