python統計字符串個數?