Input: Sentence: 'A large white and red bucket truck in rural setting'. Count the number of nouns in this sentence.
Output: 3