though a static counter sounds like the perfect solution. fast and no collisions...?