Add a visit_count page template variable
Add a function for random numbers in templates