Fix counting bugs in ListRecords and ListIdentifiers