change count from phase to frame