[LV] Pull creation of trip counts into a helper function.