Euler characteristic
The clue: mean Euler characteristic.