Optimized UniqueIdSet.Count by keeping a running total