Definition: In this task, you need to count the number of times the given letter appears in the given sentence.
Input: Sentence: 'a cat has a surprised look as it sits on the top of a bookshelf with books on the first and second shelf'. Find frequency of the letter 'a'

7