The population by permanent address for the municipality of Plovdiv for 2007 is 380,682, which makes it the second in population in the nation. According to data from the National Institute of Statistics (NSI), the population of people who actually live in Plovdiv is 346,790. According to the 2012 census, 339,077 live within the city limits and 403,153 in the municipal triangle of Plovdiv, including Maritsa municipality and Rodopi municipality. Population of Plovdiv:  At the first census after the Liberation of Bulgaria in 1880 with 24,053 citizens, Plovdiv is the second largest city behind Ruse, which had 26,163 citizens then, and ahead of the capital Sofia, which had 20,501 citizens then. As of the 1887 census, Plovdiv was the largest city in the country for several years with 33,032 inhabitants compared to 30,428 for Sofia. According to the 1946 census, Plovdiv was the second largest city with 126,563 inhabitants compared to 487,000 for the capital. In its ethnic character Plovdiv is the second or the third-largest cosmopolitan city inhabited by Bulgarians, after Sofia and possibly Varna. According to the 2001 census, out of a population of 338,224 inhabitants, the Bulgarians numbered 302,858 (90%). Stolipinovo in Plovdiv is the largest Roma neighbourhood in the Balkans, having a population of around 20,000 alone; further Roma ghettos are Hadji Hassan Mahala and Sheker Mahala. Therefore, the census number is a deflation of the number of Roma people, and they are most likely the second-largest group after the Bulgarians, most of all because the Muslim Roma in Plovdiv claim to be of Turkish ethnicity and Turkish-speaking at the census ("Xoraxane Roma"). For further information see the article Roma people in Plovdiv. Like elsewhere in the country, Roma people are subjected to discrimination and segregation (See the Bulgaria section of the article Antiziganism). After the Wars for National Union (Balkan Wars and World War I), the city became home for thousands of refugees from the former Bulgarian lands in Macedonia, Western and Eastern Thrace. Many of the old neighbourhoods are still referred to as "Belomorski", "Vardarski". Most of the Jews left the city after the foundation of Israel in 1948, as well as most of the Turks and Greeks. Prior to the population exchange, as of 1 January 1885, the city of Plovdiv had a population of 33,442, of which 16,752 were Bulgarians (50%), 7,144 Turks (21%), 5,497 Greeks (16%), 2,168 Jews (6%), 1,061 Armenians (3%), 151 Italians, 112 Germans, 112 Romani people, 80 French people, 61 Russians and 304 people of other nationalities.