How to make the right request in Grafana for the Counter type counter

I’m using a Counter type counter to count the number of files that need to be processed.
How can I make a request in Grafana to display the number of files on the panel?
Right now I’m using the idelta() function, but it gives strange results: