Input: Sentence: 'A woman performing a Frisbee trick with her dog for spectators'. Count the number of nouns in this sentence.
Output: 4