The listing below increments a counter and echoes the counter's value when AMPS receives the USR1 signal.
USR1