Were you vaccinated for pertussis (whooping cough) as a baby? It's really rare these days because of vaccinations, but it does appear in people who weren't vaccinated.
My father and I both had whooping cough about 10 years ago (neither of us were vaxed), and your symptoms sound very much like it.
But you might just have bronchitis or something, so you should see your doctor in any case.