Input: Sentence: 'Two dogs are sitting in the bed of a truck'. Count the number of nouns in this sentence.
Output: 3