ab_counter_inc helper