code refactoring
Use DICT_ATTR in rlm_counter