a city within the county functions as the capital of that county