https://instrumentationtools.com/up-counter-plc-program/
Up Counter PLC Program - Example of Counter Ladder Logics