This MR refactor RedisCounter and WebIdeCommitsCounter to be reused by other components.
We're adding more redis base counters to the web ide and other classes. We're refactoring this class in other to use the logic in other places.