count valid countries