結果 : how to count overlapping substrings in python