ms2frames: added function to convert a vector of millisecond timestamps to frame count number