Return the number of rows loaded from the delegate, so that can be passed to the cleanup method