Given the task definition and input, reply with output. In this task, you need to count the number of times the given letter appears in the given sentence.

Sentence: 'the train has just passed the crosswalk, and gates are closed to prevent pedestrian and vehicular traffic on the tracks at this time'. Find frequency of the letter 'n'
6