NXDRIVE-36: Add the error counter