string.count(substring, start, end) # Start and end is optional

Read more of this post