 The least populous county is McCormick County, with only 9,958 residents, while the most populous county is Greenville County, with a population of 498,776, despite the state's most populous city, Charleston, being located in Charleston County.In the colonial period, the land around the coast was divided into parishes corresponding to the parishes of the Church of England.There were also several counties that had judicial and electoral functions.