log the number of es queries as well as their duration