finally works right, time for counters