Input: Sentence: 'A man holds a hotdog near a cross walk'. Count the number of nouns in this sentence.
Output: 4