Use DICT_ATTR in rlm_counter + code refactoring