The compound with the molecular formula C\(_6\)H\(_6\) is benzene, which is a well-known aromatic compound. Benzene has a planar ring structure with alternating single and double bonds between the carbon atoms, forming a conjugated system.
Each carbon-carbon double bond contributes 2 \( \pi \)-electrons. Since benzene has 6 carbon atoms, and all of them participate in the conjugation, the total number of \( \pi \)-electrons in benzene is 6.
Thus, the answer is:
\[
\text{The number of } \pi \text{ electrons} = 6
\]