Calculate the number of hydrogen bonds in the box

Hello everyone:

After completing the molecular dynamics simulation, I intend to calculate the number of hydrogen bonds for all species; however, the script built into Materials Studio (MS) is only capable of performing calculations for a single frame.

Therefore, is there any method available to calculate the number of hydrogen bonds in trajectory files without the need to separately define fragments?

Looking forward to your reply

Yi Mu