結果 : count consecutive elements in list python