Learn how to view the HTML code of a page: using a browser or using a code editor. Example: Use the keyboard shortcut "Ctrl+U" to view the code in Chrome and Firefox.
Create view counters w/ PHP: Learn how to create & use a simple view counter in PHP w/ a working example.