Count remaining characters for Thesis Edit