Add and subtract integers using counters