Stéphane Abel thanks a lot for your kind input and suggestion. The g_count is not compatible with the new xtc and tpr files. Could you help me in getting the write command to execute? I have generated the trajectory using GROMACS 2019.3 version and CHARMM36m forcefield.