"Halstead program length is the total number of operator occurrences plus the total number of operand occurrences in a program."
Halstead's software-science framework derives program metrics from counts of operators and operands, with program length defined as N1 plus N2.
View Source