Definition: In this task, you need to count the number of times the given letter appears in the given sentence.
Input: Sentence: 'a boy in a toy fireman's hat takes a bite out of a pastry while sitting on a counter'. Find frequency of the letter 'r'

3