scipy.sparse.dok_matrix. scipy.sparse.dok_matrix.size# property dok_matrix.size# Number of stored values. See also count_nonzeroNumber of non-zero values.