TA: error detection counter