Input: Sentence: 'A dog and a tagged bull greet each other in a field'. Count the number of nouns in this sentence.
Output: 3