結果 : how to count number of substrings in a string python