Input: Sentence: 'The man is standing beside the bicycle in a building'. Count the number of nouns in this sentence.
Output: 3