Issue #2700727 by socketwench, Berdir, martin107: Updated flag counts in hook_ENTITY_TYPE_insert/delete, rather than in Flag's API.