How did Lancaster county get its name?

lancaster got its name lancaster because its the main town in lancashire i live in lancashire