Documentation to the rescue: https://docs.python.org/2/library/string.html
Return the number of (non-overlapping) occurrences of substring sub in string s[start:end]. Defaults for start and end and interpretation of negative values are the same as for slices.