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

Change-Id: I7516ca5ae7665efbb9332949b7f00ad5cd2c4255