結果 : count number of elements in matrix python