added the count visitors functionality