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