Average of count of server Requests from Elastic Search

I have a server which receives API requests. I am logging the same and then loading it in Elastic Search. I am using Grafana for dashboards. I need to show per second average count of requests, However I am facing issues with calculation average over count. I understand I need to use the count value and divide it by time interval but not able to achieve the same in Grafana. Please help on how this can be done.