結果 : count number of substrings in string python