forloop counter in media