Merge "Add the functionality for logging counters."