結果 : count number of substrings in a string python