1) CREATE TABLE table_name (id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, count INT DEFAULT 0, your_data TEXT)
ceate a table, when inserting leave off the id value and the next id will automatically be assigned (the 1st entry will be 1, the 2nd insert will be id 2, etc)
2)UPDATE TABLE table_name SET count = count+1, your_data = 'whatever';
when updating the table increment the count value by one.