1.) create a database table called “visit_counter” with fields id_visit, visit_count; visit_count starts at 0
2.) when a visitor comes to the page with the “block” add 1 to the visit_count field in “visit_counter” table, so after first visit there is number 1, after second visit there is number 2 etc.
3.) each visit to the page, get the value of visit_count from database and perform: