You're not going to get a simple answer.
Perhaps the easiest way is to use a microcontroller, but the problem then becomes -- how does it know that the number 3 is on the display?
Can the circuit be changed so that the display driver is replaced by something a little more clever? How well do you know how the original works?