storage: Prefer sample query on origin_visit
The counter table is faster but may contain holes and be less up-to-date.