How do I set a cookie up to tell the users how many new posts since the last time they visited the site?

Please help on this.. I just need the cookie info..not the whole html/php thing..just...