IR Trip Beam

Hey,

I've put together an IR transmitter and receiver that lights up a LED whenever the beam is broken. So thats all fine and dandy however I want to log the amount of times the beam is broken with a 4-digit 7-segment display or (if its easier) a 2-digit 7-segment. I don't have a clue how to wire the 2 components I have to my Arduino UNO or how to code it. Really need help and thanks to any that take the time to do so :]

Here are the datasheet for the 2 components with the 4-digit one first:

https://docs.google.com/viewer?a=v&q=cache:OL6RAE4cGL4J:www.us.kingbright.com/images/catalog/SPEC/DA56-11EWA.pdf+kingbright+da56-11ewa&hl=en&gl=uk&pid=bl&srcid=ADGEESgQqSN5bV-Q147Spcq-EgudZszpC59M946sS4n3bbqifU7KLrr7NgacFd5G4qTI_EFpuxbfCdxIcXSbC72beasxwixheLEXujUdYRdlapbCwg4gXzju9HEB1aBtuyUp-NOBC9PK&sig=AHIEtbRiZxaILuunU55tTtVz7UJghuGaKQ

The Arduino Playground has examples of that sort of thing.

http://arduino.cc/playground/Main/InterfacingWithHardware#Output

Thanks but I'm really really new to arduino and the example that shows how to wire it up is using 4 single digit display all linked up whereas I have a 4-digit display (common anode). So I don't know how to translate what its showing for that.

Sorry to be a pain.