Input: Sentence: 'A little boy standing in the dirt with a bat'. Count the number of nouns in this sentence.
Output: 3