Step 1: Understanding the Concept
In oxoacids of chlorine, \(\text{HClO}_n\), chlorine is bonded to \(-\text{OH}\) and to oxygen atoms by double bonds, \(\text{Cl=O}\).
Step 2: Count the lone pairs
An oxygen with a double bond to Cl has 2 lone pairs. The oxygen in the \(\text{Cl-O-H}\) group also has 2 lone pairs.
Step 3: Compare the options
Each oxygen has 2 lone pairs, which is option (D).
Final Answer:
Each oxygen atom has 2 lone pairs.
\[ \boxed{\text{(D) }2} \]