Load loop count from command line arguments