Add function Counter_get/setBase