Best way to count visitors?

There are a number of ways of achieving this but the two ways I would concider would be