basicly, have a global integer. increment it on every render. then every second, print out the number and set back to 0.

theres a better way but thats the best way to get u started