It could also be caused by a urinary tract infection or prostate infection. Either way, if this is the first time you've noticed it, drink a lot of water, and cranberries can help (cran juice, or the real cranberries). If it doesn't go away within 3 days, see a doctor.