結果 : how to count elements in an array python