We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

str.count

count(sub[, start[, end]])

Return the number of occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.