Say I have string = 'hannahannahskdjhannahannah' and I want to count the number of times the string hannah occurs, I can't simply use count, because that only counts the substring once in each case.
Ie.
I am expecting to return 4 but only returns 2 when I run this in pyCharm with string.count('hannah')