BiaÅa County, Kingdom of Galicia and Lodomeria