How can i inherit counties and duchies with marriage ?
Marry Countess/Duchess or if you are a girl, matrillineally marry eldest son heir. Your son will inherit the title.
Alternatively, you can marry someone with a claim, press the claim, white peace, and your son will inherit the claim.