بسم الله الرحمن الرحيم
(Fatwa: 1463/1132/B=11/1434)
Yes, in the above mentioned case all the three talaqs shall be counted. According to Shariah, ignorance is not an excuse in Shariah commandments. All the three talaqs took place on your wife and she became mughallazah (fully separated). In case you want to keep your wife again, Shariah halalah is needed.
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband
