Connection tracking - cout

hi,
I’m trying to do a script to count the connections on the router that have a certain destination.

some idea?
example:

:put [/ip firewall connection find reply-dst-address="xxx.xxx.xxx.xxx"[/ip firewall connection tracking get total-entries]]

I definitely made some mistakes, how can I solve?

Best regards
EC

:put [len [ip firewall connection find reply-src-address~"remote.ip.add.ress"]]

Thank you so much :smiley: