Input: Sentence: 'A man standing in a pen full of cattle'. Count the number of nouns in this sentence.
Output: 3