am a49a74cb: am e36c5d67: Add loop count control

* commit 'a49a74cb90368a3bb428600563439adc744a9e01':
  Add loop count control