fixed how to count aviable videos.