add count_queries
simplify count_queries script args