counter function in Arduino

Hi i am Zubair,newly joined this forum.
I have a question regarding Arduino programming that is,Is there any counter register in Arduino?
I want to use it for counting pulses,there is that Pulse counter function that counts frequency not number of pulses?
I need number…
Please help me or forward me a program in which counting function or counting logic has been implemented?

Any variable can be used as a counter. Increment the value when the pulse occurs.