other towns and villages of Borsod were annexed to neighbouring counties: Andornak, Kistálya and Felsőtárkány to Heves, Domaháza and Sikátor to Gömör and Kishont. Onga, formerly belonging to Abaúj county, and Külsőböcs, formerly of Zemplén county, became parts of Borsod. In 1907, Miskolc was granted the rank of city with municipal rights, becoming de jure independent from Borsod county. Of the 63 counties of Hungary, Borsod was the 39th largest by area, 23rd largest by population and 11th largest by population density (80 persons/km2) in 1910. Between 1899 and 1913 many people left Hungary and emigrated to other countries; from Borsod 23,797 people emigrated, which, not counting the 7,313 who eventually came back, makes the county 18th in the list of Hungarian counties with the most emigrees. In 1919, Borsod county had 177 villages (13 of them had a population larger than 2000). After World War I and the Treaty of Trianon, Hungary lost many of its territories to neighbouring countries. The loss did not affect Borsod county, its borders remained unchanged, but of the surrounding counties, Abaúj-Torna (Abaúj had been merged with Torna in 1882) lost 48% of its area to the newly formed state of Czechoslovakia, Zemplén lost 72% and Gömör-Kishont lost 92.5%. In 1923, Borsod county was merged with the remaining part of former Gömör-Kishont county to form "Borsod-Gömör-Kishont temporarily united county" with its capital at Miskolc. On 2 November 1938, the First Vienna Award returned to Hungary some parts of Gömör and Kishont lost in 1920; Borsod and Gömör-Kishont became independent from each other again but the border between them slightly changed. In 1941, the county had 382,324 inhabitants (378,303 Hungarians, 272 Germans, 240 Slovaks, 165 Romanians, 210 Ruthenians, 2103 Gypsies and 2324 other; 225,476 Roman Catholics, 19,625 Greek Catholics, 226 Greek Orthodox, 8657 Evangelicals, 109,809 Protestants, 105 Unitarians, 970 Baptists, 16,997 Jews, 164 of other religions). After World War II, the Vienna Award was declared void and Hungary lost the northern territories to Czechoslovakia again; in 1945, the 1938 law was repealed and the remaining part of Gömör-Kishont was merged with Borsod county again, forming Borsod-Gömör county. On 16 March 1950, during an extensive administrative reform, the remaining parts of Abaúj-Torna and Zemplén counties were merged to Borsod-Gömör, creating the modern-day county of Borsod-Abaúj-Zemplén, with only Borsod's county seat Miskolc keeping its county seat status – Sátoraljaújhely, of Zemplén, and Szikszó, of Abaúj county, lost