The number of selfavoiding rings on a lattice