On the discrete spectrum of exterior elliptic problems