Input: Sentence: 'A person standing by a window with a baseball bat'. Count the number of nouns in this sentence.
Output: 4