Approximation Using a Galerkin Technique -- Enumeration of the Real Zeros of the