letting post_pull work with local or global counters, for when it is being sourced by another script rather than run directly