A counter is a PLC instruction that either increments (counts up) or decrements (counts down) an integer number value when triggered by a command.