How to make weapon/armor brake after few hits?

How to make weapon/armor brake after few hits?
Thanks.