The problem can be transformed into the number of common tangents between a circle with a radius of 1 and a circle with a radius of 2 with a center of point B (two intersecting circles). If I remember correctly, the common tangent of the intersecting circles is 2.
hope this helps