examples/flask/10/counter.py
from flask import Flask, request, render_template
app = Flask(__name__)

counter = 1
 
@app.route("/")
def hello():
    global counter
    counter += 1
    return str(counter)
 

Access the page from several browsers. There is one single counter that lives as long as the process lives.