compute size when converting Integer to SizedBase64Integer