Fixed PER calculation. Shifted frame counter to start at 1.