Do you mean that you had multiple ice pick headaches over a three-day period? If you need any info on this type of headaches, take a look at Ice Pick Headaches - The Basics.
Indomethacin is the medication most known to be effective at preventing ice pick headaches or stopping a series of them, but it can have some side effects, especially stomach issues. Talk with your doctor about the problem. He may prescribe something for your stomach to take before the indomethacin, or he may want to try something such as Celebrex.
Good luck.