With the HTML tool draw a rectangle where you want your counter to be, paste your PHP code in the pop-up window and you're done. Don't forget to export your page with the extension PHP. This can be done by double-clicking on an empty space of your page and choose the right extension type (at the bottom of the properties window).