start of flag count