結果 : count number of 1s in an array python