We cannot rely on the header containing the number of frames in the dcd files, as namd 2.11 sets this variable to 0.