Conditionalize the counter decrementing.