結果 : count values in matrix python