rules – How to limit marking in Drupal 8?

Node compare is a great plugin, but it only concerns D7.

I use Drupal 8.

I have a page of views that has integrated flag (compare it) and an inverted table module to compare the content. He has the limit to show max. 4 content. Everything works up to this point.

But how can limit the user to report max. 4 times. The flag boundary is fine in D7 but it is not worn in D8.And I could not reach it via rules integration.
Any help with this would be great. Thank you