The first column, id, is the primary key. This is not absolutely necessary, yet it's nice to have.
Secondly, we have name, which is the Script Name. This is needed because we plan to have multiple counters.
Lastly, we have count, which is where we keep track of how many hits each page has had.

Now lets ask the database to retrieve all rows where $name = 'some unique name'. Any $name can be used (ex 'homepage', '2nd page', etc) but for this example we are setting $name equal to $SCRIPT_NAME. Doing this will make every page have its own unique counter without having to change the code one bit.

I thought it'd be really neat if new counters, or rows in the database, could be added automatically. This can be done quite easily. All we need is an if() statement to check if the row already exists. If it doesn't, we simply add another row.