Karrigell/Counter

A program to count the number of visits to a page:

The session ensures that the visit in counted only once for each visitor, even if he reloads the page 100 times.

You can of course include this script in another one. You could even pass a filename to the  function, if you need to manage a different counter for each page.