Input: Sentence: 'a baseball player catching a ball with a mitt on a baseball diamond'. Count the number of nouns in this sentence.
Output: 6