We define a new height function on rational points of a DM (Deligne–Mumford) stack over a number field. This generalizes a generalized discriminant of Ellenberg–Venkatesh, the height function recently introduced by Ellenberg–Satriano–Zureick-Brown (as far as DM stacks over number fields are concerned), and the quasi-toric height function on weighted projective stacks by Darda. Generalizing the Manin conjecture and the more general Batyrev–Manin conjecture, we formulate a few conjectures on the asymptotic behavior of the number of rational points of a DM stack with bounded height. To formulate the Batyrev–Manin conjecture for DM stacks, we introduce the orbifold versions of the so-called a - and b -invariants. When applied to the classifying stack of a finite group, these conjectures specialize to Malle’s conjecture, except that we remove certain thin subsets from counting. More precisely, we remove breaking thin subsets, which have been studied in the case of varieties by people including Hassett, Tschinkel, Tanimoto, Lehmann and Sengupta, and can be generalized to DM stack thanks to our generalization of a - and b -invariants. The notion of breaking thin subset enables us to reinterpret Klüners’ counterexample to Malle’s conjecture.