value
The counter's value: the sum of all per-replica counts.
The sum is formed exactly, so it is right whenever it fits in a Long, and refused when it does not. inc keeps every slot at or below Long.MAX_VALUE, but that cannot protect the sum: slots are only added together here, after a join, and two replicas can each hold 2⁶² without either one ever making an increment it could have refused.
Throws
if the sum of the counts does not fit in a Long. valueOrNull answers null instead.