Add counter metrics for tracking failures

Test: build
Bug: 268323312
Change-Id: I7d0f7348c271390f6cbbb07be2d72365d91cd018
1 file changed