A formula for the Euler characteristic of the moduli space of stable n-pointed curves of genus 2