Input: Sentence: 'There is a yellow vehicle on the tracks in the distance'. Count the number of nouns in this sentence.
Output: 3