number of hydrogen bond within fixed distance as a function of simulation of time

i have perform a simulation of solvent comprising some water molecules and a organics and I want to know how can I calculate the number of hydrogen bond within specified radial distance as function of simulation time with Btcl. my materials studio version is 4.0.
thanks a lot.