Input: Sentence: 'An umpire gets ready to call a player safe or out'. Count the number of nouns in this sentence.
Output: 2