Create a Flask-based application with a persistent counter that even after restarting the application the counter will keep increasing.