Input: Sentence: 'this is a dog on back of a truck'. Count the number of nouns in this sentence.
Output: 3