Modify character_count to remove issues as discussed.