Finiteness of the discrete spectrum of many-particle Hamiltonians in symmetry spaces