http://stackoverflow.com/questions/11869142/how-can-i-make-a-php-counter