Increment input and output frame counts in the right place.