Input: Sentence: 'A black and white picture of people standing around with a horse and some cows'. Count the number of nouns in this sentence.
Output: 4