add counter and loops examples