This will count number of page views in a session. Simple, to add on the page just add the code on the top of the page and make sure it is before any html.
This code looks cool :)
But it's not very useful to just track the views count on a particular session, isn't it? I thought it might be better to count the total number of views in total.