Input: Sentence: 'A man's tie hangs around his neck as he stands by a small plant'. Count the number of nouns in this sentence.
Output: 4