5. In the Cartesian coordinate system, given points $A(0,0), B(0,1)$, $C(0,2), D(1,0), E(2,0), F(1,1), G(1,2)$, $H(2,1), K(2,2)$: then the number of squares formed by any four of the points $A, B, C, D, E, F, G, H, K$ is $\qquad$; the number of right-angled triangles formed by any three of the points $A, B, C, D, E, F, G, H, K$ is $\qquad$.
$5.6,44$