class_docstr: Records progress through the set of linear nonbranching constraints with gaps.
class_docstr_tok: ["Records","progress","through","the","set","of","linear","nonbranching","constraints","with","gaps","."]
code: def num_constraint_tokens(self):
      return sum(self.token_counts.values())
  
imports: from collections import Counter
  from typing import List, Optional, Set, Tuple
  import torch
label_desc: Use image node_id 13 for calling the OrderedConstraintState obj's underlying member method code with example usage: obj.num_constraint_tokens() and returns: sum