The Euler-Poincaré pairing of Harish-Chandra modules