SAP length and ancestor method for iterators.