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