Input: Sentence: 'A train that is sitting on the tracks next to the grass'. Count the number of nouns in this sentence.
Output: 3