[feature] add keys_counter to mstats_base for caculate the avg_val