String Count Example

# this code returns the number of times "abr" occurs in the sentence

sentence = "abracadabra"

print (sentence.count("abr"))