Up counter using millis() and Arduino Uno

How do I implement this, use a flag?