count queries in progress.