Numbers of zeros on invariant manifolds in reaction-diffusion equations