Code review comments
1. minor logic cleanup. The Counter constructor does not register itself. getOrCreateCounter does it.
2. Code review comments