scipy.sparse.dok_matrix
scipy.sparse.dok_matrix.asformat
Number of stored values, including explicit zeros.
See also