why is my head hurting while i am coughing

why does my head hurt when i cough
headaches from coughing