Determine how many times a substring occurs adjacently in a string in Python : <p>I want to calculate how many times a substring occurs "adjacently" in a string, 
for example, given the string "8448442844" and the substring "844", I want the result "2".
I know the string.count(substring) function, in this example, using this function, I will get the result "3". But I want the result "2". How can I achieve my goal, thanks in advance.</p>
