In a pure or intrinsic semiconductor, electrons and holes are generated in pairs.
So at thermal equilibrium:
\[
n=p
\]
where:
\[
n = \text{electron concentration},\qquad p = \text{hole concentration}
\]
Therefore, the number of electrons equals the number of holes.
Hence, the correct answer is:
\[
\boxed{(B)\ \text{Number of electrons = Number of holes}}
\]