[MODIFY] counting strings consider surrogate-pair of Unicode