Input: Sentence: 'A man walking with an elephant in a parking lot'. Count the number of nouns in this sentence.
Output: 4