limit num through loop counter