You can create a controller command that does that and call it in set intervals from a cronjob. The controller command will find the element that's storing your number, increment the number by the set ...
You're likely receiving this error due to a problem with your Apache configuration.
A likely scenario is you're missing the .htaccess file or it could have an error. You should check your Apache logs ...
Something like this should do the trick.