On the Euler number of an orbifold