Digital Pulse/Signal Counter using digitalRead ?

Hi,
I know this is a very old topic, but to my curiosity.. did you manage to make it?