結果 : find number of substrings in a string python