That's just keeping a integer field in DB per page.
Then put the counter in Globle.Asax file(Hope you're using ASP.Net as you just stated 'codeproject' tag, and it uses ASP.Net too)
Fetch name of page user requesting for and update counter in DB if you want to store it permanently. otherwise you can use session to maintain.
for more information HERE
] is a mega link for you.