J.C.
I had the same symptom of frequency you describe and it was worse before my period came. The urologist determined I was having bladder spasms because I had a kink in my urethra. It took him about 10 seconds to fix it by stretching out my urethra. Now I don't get up at all in the middle of the night to go to the bathroom.
Go to a urologist.