Let [Formula: see text] be a finite group and [Formula: see text] denote the set of the prime divisors of [Formula: see text]. The symbol [Formula: see text] denotes the number of same order classes of all non-abelian subgroups of [Formula: see text]. Firstly, the finite groups with [Formula: see text] are classified completely. Secondly, the lower bounds on [Formula: see text] are obtained by the functions of [Formula: see text]. In particular, it is showed that [Formula: see text] for non-solvable groups [Formula: see text]. Finally, the structure of groups with [Formula: see text] is investigated.