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