since we use PreparedStatement repeated queries in "count" we should also calculate the latency (again) in this way