XCNT
static int previous_xcnt = XCNT;
previous_xcnt = XCNT;
while ((len != 0) && (xcnt < XCNT) && (*s == 'X')) {