Hi martin181818
You can do that by adding a send method to the host script that would, when read on the oak side, instruct the counter to reset. You could send a buffer carrying the "reset" message from within host.py script and read it inside the oak.py.
Regards,
Jaka