Written method that counts alns for each record and CDS