>>> "the three truths".count("th") 3 >>> "ababababab".count("abab") 2