Ok, no takers, so here's the solution. One version of the script increments the counter 24 times faster than the other version.