Merge "Add the functionality for logging counters." am: 7868a0d82f am: d94b674d58 am: 12ab08b182
am: 9aa1c94ebb

Change-Id: I0e24852570269834b5e2cb81f096eca06a7f199a