added "total" count of queries