Basically the query_results_count_filter is not working
Welcome to the forum!
Since you also sent us an e-mail at the same time (which is not really necessary - a report in the forum or by e-mail is sufficient), I have already been able to solve the problem.
Something was wrong with the ID of the loop. I duplicated the whole container so that the loop also gets a new ID and now it works
I noticed this also: One should not rename the bricks id when using the querry count. Always leave the bricks id as is :).