Added function to calc characters that fit on page.