simplify and clarify character count demo