Create a view function that counts the number of requests made by each user to a specific route (/counter). You don't want the counter to restart when the users close and open their browser. So you are going to use sessions. The application should display the total number of requests made and increment the count with each request. The request count should be stored using session variables.
Output: {"count":n}, where n is the number of requests made.