Scalable implementations of counter data structures