Input: Sentence: 'Black dog in a mowed field returning a frisbee to the thrower'. Count the number of nouns in this sentence.
Output: 4