Arduino powered money counter

I made this many years ago:-
Imgur

However it uses a linear CCD sensor which is in effect lots of photo detectors to measure the size of the shadow as the coin passes in front of the sensor. I did not do this for an arduino but the idea should be easily translated. The only snag might be getting hold of this sensor nowadays.