Updated how frames are count (they are now based on the actual video,
independent of what regions are to be processed)