added number of flags when done, and focues on countryfield