Provide an API for validating the number of queries produced by other threads