Implement nnz's for trivial case of an identity matrix.