Register this procedure, then invoke it repeatedly. Its counter is stored in SQLite under the procedure hash and survives server restarts.
Ready.