str.count(sub[, start[, end]])Return the number of non-overlapping occurrences of substring
subin the range[start, end]. Optional argumentsstartandendare interpreted as in slice notation.
>>> sentence="Mary had a little lamb"
>>> sentence.count('a')
4