Server side JavaScript (NodeJS) - Server script to increment and decrement a counter every time someone opens or closes a page. Using sockets.