Input: Sentence: 'A baseball player attempting to slide into a base'. Count the number of nouns in this sentence.
Output: 3