Poor thing! Its been a LONG time since I had a cough that bad, I do not remember it fondly....I do remember coughing so hard I would almost start vomiting. Not a fun time.
At that time, I worked at a hospital. My coworkers finally dragged me to the emergency room one afternoon - after they checked first to be sure it wasn't a busy time. The ER doc told me that with non-productive coughs like I had - that just didn't want to go away, but didn't have a cause that a doc could find - I should try suppressing the cough when I could. In other words, consciously say "I will NOT cough right now," and take a deep gentle breath or swallow instead. I started doing that, and the cough finally started going away.
I don't know if that will help you or not....
Also, a wonderful soothing thing for that raw throat that goes along with the cough is some honey.
I hope you feel better soon!
~"I find hope in the darkest of days, and focus in the brightest. I do not judge the universe." (Dalai Lama)