Once can print loop count of current thread group as
${__jm__MyLoopController__idx}
if your Threadgroup name is login , we need to change it as below
${__jm__login__idx}