What happens if you kill and restart the client? Why don't you use the old stats method to get a baseline number, then call "select count(*) from V%d" for values of %d starting with the one in stats and incrementing until you find the current one?