Further counter improvements

The number of times the counter was decremented needs to be tracked,
since increment and decrement often happen in different threads

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>