Input: Sentence: 'A white work horse pulling a red wheeled vehicle'. Count the number of nouns in this sentence.
Output: 3