Find the number of real values of parameter $$a$$ for which the largest value of the quadratic function $$f(x) = x^{2} + ax +2$$ in the interval $$[-2,4]$$ is 6.