Input: Sentence: 'theres a cart and there men standing next to it'. Count the number of nouns in this sentence.
Output: 2