Basic looper implementation
Added ItemsPerLoop ($ipl) parameter and counting function to insert looper item class