Of course, there's Medieval Demographics Made Easy by S. John Ross and all the associated calculators others have made to go along with it:
http://www.io.com/~sjohn/demog.htm

And also this thread started by Pyrandon has some good advice for building towns and cities:
http://www.cartographersguild.com/showthread.php?t=828