Input: Sentence: 'A MAN IS PLAYING FRISBE WITH HIS DOG IN A OPEN FIELD'. Count the number of nouns in this sentence.
Output: 3