If you have NCD protection
The number of years no claims you have should remain the same. However, some insurers have a claim limit, so if you have more than one accident within a year, your number of years no claims may be affected. If you're unsure and would like some further advice, contact your claims team directly (their contact number will be listed in your documentation).
If you don't have NCD protection
If the claim you're making is not your fault, then your no claims bonus will remain as it is. If the accident was your fault, then your number of years no claims will be reduced by two or four, or may even be dropped back down to zero.