title: Increment counter for every access to a Flask view
body: <p>I want to increment a counter when users access a page in my Flask app. If two users access the page, the count should increase by 2. I tried the following but the count is always 1. How do I increment the value for each access?</p>
  
  <pre><code>@app.route('/count')
  def make_count():
      count = 0
      value = count + 1
      return jsonify(count=value)
  </code></pre>