Answer:
Use or Add a log of the actions of the system including the integer, the action, and the time. Scroll through and see which integer was added but was not removed.
Step-by-step explanation:
I wouldn't be able to program this, but I think a log is the best solution for this.