Two circles in the xy-plane are S1:x2+y2−4x−6y−12=0 and S2:x2+y2+12x+6y+c=0, where c is a real constant. The circle S2 passes through the point (−3,1). A common tangent is a straight line that touches both circles. Using the value of c fixed by this condition, how many common tangents do the circles S1 and S2 have?