You cant put ir on proteus as its a sensor and it deals with real world action.
See, the ir pair is going to generate a high pulse which will be counted by the controller. So you can build a logic to count the pulses on any I/O pin of the microcontroller and connect the IR pair on that pin.
You can test the code on proteus by putting a button on the pin and pressing it again and agian.