added stack counters