Joins and label windows without leakage — step 6 of 7
Write count_before(events, user_id, anchor_day) so it counts one user's events before the anchor day.
Write count_before(events, user_id, anchor_day) so it counts one user's events before the anchor day.