Automatically Tag contacts who have 4 or more different tags in a specific Tag Category

Hello, I was wondering if it’s possible to automatically apply a tag to a customer who has or will have 4 or more different tags in the same tag category?
For example, the next batch of import contacts may include existing contacts already with 3 tags in the same Tag Category and with this batch the system will notice this customer now has 4 tags in the same Tag Category and automatically apply a desired tag that I want.