Step 1: Identify network solids.
Network solids are solids in which atoms are connected by strong covalent bonds throughout the crystal.
From the given list, network solids are:
\[
AlN,\; diamond,\; SiO_2
\]
So, number of network solids is
\[
3
\]
Step 2: Identify ionic solids.
Ionic solids are made up of positive and negative ions held together by strong electrostatic forces.
From the given list, ionic solids are:
\[
CaF_2,\; MgO,\; ZnS,\; NaCl
\]
So, number of ionic solids is
\[
4
\]
Step 3: Classify the remaining substances.
\[
H_2O(ice) \text{ is a molecular solid}
\]
\[
Cu \text{ and } Ag \text{ are metallic solids}
\]
\[
CCl_4 \text{ is a molecular solid}
\]
Step 4: Final conclusion.
Hence, the number of network solids and ionic solids respectively is
\[
\boxed{3,\,4}
\]