I tried to remove the spaces, as suggested above, with no apparent change in effect. The desirable all-in-one construction above still delivers zero count, so the two-step appears to be necessary to count visits to a resource over arbitrary time. And in this case, the stickiness is part of the solution—although otherwise a nuisance.
I still have a creeping feeling that I’m going about it all wrong.