error counting

Change-Id: I667637cbc3707413238ef509abcb0833c9b25174