Input: Sentence: 'Two men with tennis rackets are walking on a tennis court'. Count the number of nouns in this sentence.
Output: 5