Divorce during the menses is counted as one legal divorce. Sahih al-Bukhari 5253

Show Arabic text
Translation
Narrated Ibn `Umar

(Divorcing my wife during her menses) was counted as one legal divorce.