Is it possible to not charge any taxes when purchasing more than 5 products of the same collection?

Hello everyone,

I would like to know if there is any application or admin/code modifications to be made that could potentially create the following rule:

  • Do not charge any tax when more than 5 products of the same collection have been added to the cart, but excluding two specific collections.

Meaning, creating this rule based on amount of products and not cost.

Thanks!