Execute code for X visits

Tutorial Difficulty Level    

This JavaScript will let you execute code a certain number of times. For example, you might want to only show a pop up to visitors on their first 3 visits.

This code was shamelessly stolen from getbutterfly.com – check them out for lots more Javascript tutorials!