Input: Sentence: 'A man with a broken baseball bat standing in the dirt'. Count the number of nouns in this sentence.
Output: 4