temporarily added counter to esa-smax.c