Counting flag-ins and opt-outs