The number is $4$.
We may use the fact that the dot product of two non-zero vectors is zero
if and only if the two vectors are perpendicular.
Let $A(x_1, y_1)$, $B(x_2, y_2)$, and $C(x_3, y_3)$.
Since $D, E, F$ are three distinct points,
we know that $A, B, C, D, E, F$ are six distinct points.
$A, B, C, D, E, F$ must satisfy the following six equations:
\begin{align}
(x_1 - 20)(x_2 - 20) + (y_1 - 25)(y_2 - 25) &= 0, \tag{1}\\
(x_1 - 20)(x_3 - 20) + (y_1 - 25)(y_3 - 25) &= 0, \tag{2}\\
(x_2 - 8)(x_1 - 8) + (y_2 - 16)(y_1 - 16) &= 0, \tag{3}\\
(x_2 - 8)(x_3 - 8) + (y_2 - 16)(y_3 - 16) &= 0, \tag{4}\\
(x_3 - 8)(x_1 - 8) + (y_3 - 9)(y_1 - 9) &= 0, \tag{5}\\
(x_3 - 8)(x_2 - 8) + (y_3 - 9)(y_2 - 9) &= 0. \tag{6}
\end{align}
Explanation: Equations (1) through (6) describe $\overrightarrow{AD} \perp \overrightarrow{BD}$,
$\overrightarrow{AD} \perp \overrightarrow{CD}$,
$\overrightarrow{BE} \perp \overrightarrow{AE}$,
$\overrightarrow{BE} \perp \overrightarrow{CE}$,
$\overrightarrow{CF} \perp \overrightarrow{AF}$, and
$\overrightarrow{CF} \perp \overrightarrow{BF}$, respectively.
All solutions $(x_1, y_1), (x_2, y_2), (x_3, y_3)$ of the above system of equations are given by:
i) $(5,10), (50, -5), (15,30)$;
ii) $(50, -5), (5,10),(10,15)$;
iii) $(15,30),(10,15),(5,10)$;
iv) $(10,15),(15,30),(50,-5)$;
v) $(8,41),(8,16),(-4/3,9)$;
vi) $(8,34),(53/4,16),(8,9)$;
vii) $(20,25),(8,16),(8,9)$;
viii) $(20,25),(85/8,25/2),(10/3,25/2)$.
Since $A, B, C, D, E, F$ are six distinct points, the solutions v), vi), vii) and viii)
do not meet the requirement. One may check that i), ii), iii) and iv) are all indeed the solutions.