Fixed hit_count to contain the actual hit count when adding or modifying records