Input: Sentence: 'Sheep herd on road with dashboard photo and trees in background'. Count the number of nouns in this sentence.
Output: 6