7. In a Cartesian coordinate system, given points $A(2,2)$, $B(-2,-3)$, point $P$ lies on the coordinate axes, and $\triangle A B P$ is a right-angled triangle. Then the number of points $P$ is ( ).
(A) 3
(B) 4
(C) 6
(D) 8
7. D.

Draw a circle with $AB$ as the diameter, and draw perpendicular lines to $AB$ through points $A$ and $B$. The circle and the perpendicular lines intersect the coordinate axes at 8 points.