In this task, you need to count the number of times the given letter appears in the given sentence.
Sentence: 'a train pulls up as a man stands waiting alongside snack machines'. Find frequency of the letter 'g'