Counting outcomes of multi instance user task

How can I count outcomes of multi instance user task and
store into variables to be used in loop condition?

Thanks

Section 10.3 of Activiti in Action (2012) shows an example. There may be some differences from that book to Flowable, though it may be easy to translate.

I can’t find it.
Thanks