On the Euler characteristics of certain moduli spaces