結果 : get number of elements in matrix python