'PHP' will only 'know' if a page has been 'requested', when that page is actually being run on the server.
So, on each page that you wish to 'count', you could add (include) a piece of code that increments a database field (or a value in a simple text file).
See how you get on ...
Paul 🙂