An Euler characteristic for modules of finite G-dimension