Let $X/k$ be a (geometrically integral and connected) variety over $k$ either a field of characteristic $0$ or a finite field. Let $[X] = \sum_{i\in I}[Y_i] - \sum_{j\in J}[Z_j]$ be a decomposition inside the Grothendieck ring $K_0(\mathrm{var})$ with the $Y_i,Z_j$ smooth, projective and connected. It seems to me that the number $\rho(X) = |I| - |J|$ is an invariant of $X$ and does not depend on the decomposition.
Proof of independence: First, let $k$ be a characteristic $0$ field. Let $E(X)(u,v)$ be the Euler-Hodge-Deligne polynomial defined using mixed hodge structures. It factors through $K_0(\mathrm{var})$ and for a smooth,projective and connected scheme $X$, $E(X)(0,0) = 1$; therefore $\rho(X) = E(X)(0,0)$.
Second, let $k = \mathbb F_q$ be a finite field. We claim that $\rho(X)$ is the order of the pole at $t=1$ or the zeta function $$\zeta_X(t) = \exp\left(\sum_{n\geq 1}|X(\mathbb F_{q^n})|\frac{t^n}{n}\right).$$ It is well known that $\zeta_{X\sqcup Y}(t) = \zeta_X(t)\zeta_Y(t)$ and that for a smooth projective connected scheme, there is a unique pole of order $1$ (by the Weil conjectures). This completes the proof as in the first case.
Question 1. Does this invariant have a name?
Question 2. Is there an alternative proof of this independence, perhaps one that also works uniformaly over an arbitrary base?