a simple counter for php