Write a ShardedCounterField class