Fix bug in displaying total character count