Visualise data in front end with count api

Instead of calling the API 30 times for each day, I would recommend building a new route with a custom controller and a custom query that retrieves counts for each day in a single request.