output number of frames
more shell now, but works better and doesn't do unnessesary copying