frequency of urination needs a medical investigation including an examination and blood/urine tests to rule out diabetes mellitus. see your primary care care provider first. if your tests are normal then you will need to see a urologist. this problem can be fixed but a cause will need to be medically-determined first.
i am a 30 year old male and have to urinate ~20 times/day. it is especially bad as i go to bed and right as i wake up. i do not wake up in the middle of the night to pee but when i'm lying down to sleep i feel an almost constant need to pee even immediately after doing so. this has been going on for a long while likely over a year. i am otherwise completely healthy. and am not taking any medication. some nights are worse than others but most involve getting up to pee at least 3 times from when i lie down to sleep until when i actually fall asleep. the worst nights i may have to pee up to 10 times.