title: to limit the limit count variable to fixed value
body: <p>I want to execute some code based on value in limit count, but I want to limit its value to 20000 max.
  for eg if limit count passed is 50000 then run the code three times with values as 20000,20000,10000
  also if limit count is 10000 then run it as is</p>