Nonlocal twist operators are introduced for the O(n) and Q-state Potts models in two dimensions which count the numbers of self-avoiding loops (respectively, percolation clusters) surrounding a given point. Their scaling dimensions are computed exactly. This yields many results: for example, the number of percolation clusters which must be crossed to connect a given point to an infinitely distant boundary. Its mean behaves as (1/3sqrt[3] pi) |ln( p(c)-p)| as p-->p(c)-. As an application we compute the exact value sqrt[3]/2 for the conductivity at the spin Hall transition, as well as the shape dependence of the mean conductance in an arbitrary simply connected geometry with two extended edge contacts