StatCounter: Use Config instead of globals

Change-Id: I5b2281291c907ce543e8aa0400b0bda3bf253579
Merge "StatCounter: Use Config instead of globals"