scipy.sparse
lil_matrix.
nnz
Number of stored values, including explicit zeros.
See also
count_nonzero
scipy.sparse.lil_matrix.shape
scipy.sparse.lil_matrix.asformat