Divorce issued in writing or via e-mail or text message counts as such so long as the intention to divorce is present or it is accompanied by signs that point to intention to divorce.
But if that is written in order to show his handwriting or with the intention to make his wife worry, but without the intention to divorce her, then it does not count as such.
But if you are uncertain about your intention when you wrote the message, or you forgot what your intention was, the divorce does count as such.
See the answer to question no. 72291
In order for divorce to be valid, it is not stipulated that the wife should hear it or that witnesses should be present.
Divorce during the wife's menses or during a period of purity in which a man has had intercourse with his wife, does not count as such according to the more correct opinion. See the answer to question no. 72417
Divorce issued in a state of extreme anger does not count as such. See the answer to question no. 96194
The threefold divorce counts as one divorce, according to the more correct opinion, whether one says: You are divorced, you are divorced, you are divorced, or he says: You are thrice divorced or You are three-times divorced.
If a man divorces his wife and she begins the iddah, then he divorces her again before taking her back, the second divorce does not count according to the more correct opinion, because divorce can only be valid after doing the marriage contract or after taking the wife back.
Shaykh Ibn Uthaymeen (may Allah have mercy on him) said: The more correct view concerning this entire issue is that there is no threefold divorce at all, unless he issues a divorce then takes her back, or makes a new marriage contract otherwise the threefold divorce does not count as such. This is the view favoured by Shaykh al-Islam Ibn Taymiyah (may Allah have mercy on him), and it is the correct view. End quote from ash-Sharh al-Mumti, 13/94
Based on the above, you can work out the number of divorces that you issued.
Husbands have to fear Allah, may He be exalted, and not take the verses of Allah in jest, or toy with divorce and use it for purposes other than those for which it was ordained.
And Allah knows best.
Reproduced from Islam QA