Sample accoring to nnz