Input: Sentence: 'A man standing on a porch wearing a bow tie'. Count the number of nouns in this sentence.
Output: 4