How to make a xmousewheel only after i moved to 5 times a loop?

How to make a xmousewheel only after i moved to 5 times a loop?

Can you provide more details? In general the solution is to count the loops or simply uses the TIMES command.