How many times can cardioversions be done?

There is no limit. However, if the rhythm keeps recurring in spite of medication to prevent that, probably better just to use medicine to control the heart rate. Atrial fibrillation can be well tolerated as long as the heart rate is not too rapid.