Input: Sentence: 'A man playing tennis on a tennis court'. Count the number of nouns in this sentence.
Output: 4