Not shure of a script

Hi I'm trying to create a script that will use a arduino uno . I need it to send a pulse out of it , after counting 2 or 3 pulses into it.

I'm new with script writing as I am use to PIC programming.

Anyway can anyone make a suggestion as to the type of script to use?
Iv'e been reading up a little and cant seem to find anything that is clear to understand.

Thanks 8)

What would be making the pulses into ? you would have to read the pulses with analogRead (i don't think i put the caps right) and then just count pulses above a certain voltage and then send one out

Logic level pulses? Like from near ground to over 3V?