The Karabakh khanate dissolved in 1822. A survey prepared by the Russian imperial authorities in 1823, a year after and several years before the 1828 Armenian migration from Persia to the newly established Armenian Province, shows that all Armenians of Karabakh compactly resided in its highland portion, i.e. on the territory of the five traditional Armenian principalities, and constituted an absolute demographic majority on those lands. The survey's more than 260 pages recorded that the district of Khachen had twelve Armenian villages and no Tatar (Muslim) villages; Jalapert (Jraberd) had eight Armenian villages and no Tatar villages; Dizak had fourteen Armenian villages and one Tatar village; Gulistan had two Armenian and five Tatar villages; and Varanda had twenty-three Armenian villages and one Tatar village. Only 222 Armenians migrated to lands that were part of the Karabakh province, in 1840.