Wales was divided into hundreds following the Laws in Wales Acts 1535 and 1542, using a similar system of hundreds as used in England. This resulted in the creation of five new counties from the Marches of Wales. Combined with the transformation of the Lordships of Pembroke and Glamorgan into new counties, with the existing counties of Cardiganshire, Caernarfonshire and Flintshire this gave Wales its thirteen counties.