Actually “Limit discount to every nth item” is what you need. Of every group of 4 matching products it discounts the 4th. The order of adding to cart should not make a difference. If it doesn’t work as expected, please send url + instructions to reproduce or a screenshot explaining the issue.