Divorce during the menses is counted as one legal divorce. Sahih al-Bukhari 5253
Translation
Narrated Ibn `Umar
(Divorcing my wife during her menses) was counted as one legal divorce.