A combinatorial class number formula.