A function, as mentioned below that increments the system table's counter and returns that value seems to be the best (maybe only) method.