TDM: Dynamic record count issue