Input: Sentence: 'Tennis player in red shirt and white shorts serves ball'. Count the number of nouns in this sentence.
Output: 5