see [[http://mathworld.wolfram.com/EulerCharacteristic.html|Euler Characteristic]]