I am curious whether it is possible to keep track of the number of times a specific .py file is ran without ever reading and writing to/from a file.
This thread: how can i count how many time program has been executed in python
uses atexit module to update a json file and log the number of times the script has ran in its lifetime. I guess this type of data must be logged in a file?