To determine how many compounds contain at least one secondary alcohol, we need to identify the compounds with secondary alcohols from the given options. A secondary alcohol is characterized by the presence of a hydroxyl group (\text{-OH}) connected to a carbon atom, which is itself connected to two other carbon atoms.
Compound I: The compound contains hydroxyl groups, but the hydroxyl group attached to the nitrogen is not relevant for secondary alcohol. The other hydroxyl group is connected to a primary carbon. Hence, it does not have a secondary alcohol.
Compound II: This compound has a secondary alcohol. The hydroxyl group is attached to a carbon atom bonded with two other carbon atoms.
Compound III: No secondary alcohol is present as the hydroxyl groups are connected to carbons that have three hydrogen or other functionalities, not other carbon atoms.
Compound IV: The hydroxyl group is attached to a secondary carbon atom, making it a secondary alcohol.
Compound V: Similar to Compound IV, there is a secondary alcohol; the hydroxyl group is attached to a carbon bonded to two other carbon atoms.
Compound VI: Contains a secondary alcohol, as the hydroxyl group is connected to a carbon that also bonds with two other carbon atoms.
Therefore, compounds labeled as II, IV, V, and VI contain at least one secondary alcohol.
Conclusion: The correct answer is that four compounds contain at least one secondary alcohol.