A PLC counter is a function block that counts up or down until it reaches a limit. When the limit is reached the output is set.
The thing is that counting is in fact widely used in PLC programming. Often you will have the need to counts different things. An example of this could be to keep track of how many times a process has been completed. Or how many products has been produced.