For how many integer values of a does the equation x^2 + ax + 8a + 18 = 0 have integer solutions for x?