Purge inactive visit and add visit counter

It's actually becoming something!