fix batch counter
make batchProcessHelper work with standalone WP installs