結果 : function to count number of elements in list python