it was configurated as a county inside the kingdom of leon