added counters for stack and queue.