I design a loop, condition is counter<>3.
It seems only receives 3 messages when I send more than 3.
for example, I send 105 messages, for every 10 messages it will generate a file. and I totally have 11 files.
What is the best way to end the loop?