pneumonia

I just went to the doctor and they said I have pneumonia. I have anxiety and i’ve never been this sick before, I can’t stop thinking I’m gonna die or something I hate it. has anyone else had pneumonia??? how long did it take to to feel better?