In short, the author used yolo5 to count cars from webcam streams locations along highways in San Juan. I think it would have been easier to do background subtraction and count vehicles using standard vision techniques (e.g., threshold, watershed, count blobs), given that they had access to a fixed view security feed.