Fix const warnings in rlm_counter