Increment and decrement flag_in and opt_out counts