Add cookie storage to record num_visits