Need count pulses

How i can count pulses on a input of SAM7? help…

Need count pulses

This is off topic (not a free RTOS question). The answer depends on your requirements (for example the frequency of the input).  It could be done in hardware (counter timer peripheral) or in software.