Input: Sentence: 'A man holding a tennis racquet on top of a tennis court'. Count the number of nouns in this sentence.
Output: 6