結果 : number of substrings in a string python