Let's imagine you have only SQL. You need some table where you should increment value in some property when you update this line.
We have the table
CREATE TABLE "test" ( "identifier" VARCHAR(200) NOT NULL, "value" INTEGER, PRIMARY KEY ("identifier") )