Removing ancestor query that incorrectly coupled counter retrievals. Also used strings as keys in simple counter.