tokens: The methods for crowd counting in videos fall into two broad categories : ( a ) Region of Interest ( ROI ) counting , which estimates the total number of people in some region at a certain time ; and ( b ) Line of Interest ( LOI ) counting , which counts the number of people crossing a detecting line in a video during a certain period of time .