結果 : count number of substrings python