Php counter

I did a search, please don’t beat me too hard if this has been asked a million times.
How could I make a hit counter in PHP? Just a simple text one.
I’m sure it would be an easy task and I have a semi-solid idea how to do it, I just don’t really know how to code it.

I was thinking you would set up a variable that would just be increased each time someone visited a page and that number would be drawn from the text file and displayed. I’m not worried about IP stuffs or anything.

Any help would be thuper