Identifying the number of successful query executions in a given time span