Scotland is divided into 871 civil parishes which often resemble same-named but legally different ecclesiastical parishes. Although they have had no administrative function since 1930, they still exist and are still used for statistical purposes such as the census. Many former civil parish areas also continued to form registration districts until 1 January 2007. Many boundary changes have occurred over the years and an area currently derived from an old parish might no longer contain a place previously within that parish. Similarly, county boundaries (as still used for land registration) have also changed over the years such that a parish mentioned historically (generally before the 1860s) as being in one county (or sometimes two due to straddling a border) might now be in a neighbouring county and consequentially in a different succeeding council area.