Dividing pulses

Hi, I'm a newbie with Arduino...

I'm looking for a simple way to read digital pulses and repeat them at 50%.
ie. 2 input pulses on D1 would send 1 pulse on D2.

The input frequency is variable
The max would be 8000 pulse per sec input -----> 4000 output

Everything I read sounds to complex for me. I have very limited programing skills.

Thanks

What about a piece of code that increments a variable every time it detects a HIGH on one pin and puts out a HIGH on another pin every second increment?

...R

Try this example: http://arduino.cc/en/Tutorial/ButtonStateChange#.Uy27q2RzboY
Near the end of the code, if you change buttonPushCounter % 4== 0 to buttonPushCounter % 2 == 0, then it will divide the input by 2.

Note: The input doesn't have to come from a push button and the output doesn't have to go to an LED.