Input: Sentence: 'Train tracks go into a building on both sides'. Count the number of nouns in this sentence.
Output: 4