Sanitizer support for character counting

Similar to the others, except this one takes an additional flag for
wrapping the count with ellipses.