The number of functionally independent invariants of a   pseudo--Riemannian metric
  The number of functionally independent scalar invariants of arbitrary order of a generic pseudo--Riemannian metric on an $n$--dimensional manifold is determined. 
J Mu\~noz Masqu\'e and Antonio Vald\'es