python program to count number of characters freq in a string code example
Example: count characters in string python
>>> sentence = 'Mary had a little lamb'
>>> sentence.count('a')
4
>>> sentence = 'Mary had a little lamb'
>>> sentence.count('a')
4