Input: Sentence: 'a mailbox on the sidewalk decorated to look like R2D2'. Count the number of nouns in this sentence.
Output: 2