Water permeation script for GROMACS trajectories

GROMACS version:
GROMACS modification: Yes/No
Here post your question Anyone can share the script for calculating water passing across the nanotube in the lipid bilayer.
The one script available is not working for GROMACS trajectories.