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