Input: Sentence: 'A man standing on sidewalk next to a lanai'. Count the number of nouns in this sentence.
Output: 3