updates the number of hits for a page