add code for counting visitors