Input: Sentence: 'A man holding a tennis racquet up to the sky'. Count the number of nouns in this sentence.
Output: 3