count html entities as one character