If you've moved away from staying pure Perl, for a source of an unguessable counter, I'd use the Time Stamp Counter.
Various things: