Add frame counter