A Typical Video-based Framework for Counting, Behavior and Safety Analysis at Intersections