Input: Sentence: 'A car that is next to a truck with boxes'. Count the number of nouns in this sentence.
Output: 3