The class number bounds unramified first cohomology
Assume global Artin reciprocity in the normalization below. Let $E$ be a number field, $\Omega$ an algebraic closure, and choose a valuation ring of $\Omega$ above every finite place of $E$, defining inertia subgroups $I_v\subseteq G_E$. Let $\ell$ be prime and $O$ a discrete valuation domain finite over $\mathbb Z_\ell$. Assume $\ell\ne2$ or $E$ has no real places. Let $M$ be an $O$-module isomorphic to $\operatorname{Frac}(O)/O$, endowed with the trivial $G_E$-action.
If $S\subseteq H^1(G_E,M)$ is an $O$-submodule whose classes admit locally constant cocycle representatives and whose restriction to each $I_v$ is zero, then $$\operatorname{length}_O S\le\operatorname{length}_O(O/\ell O)\,v_\ell(h_E),$$ where $h_E$ is the class number. Lengths are allowed to be infinite.
The assumed reciprocity theorem supplies, for every number field, an open quotient homomorphism from its ideles to the topological abelianization of its absolute Galois group. Its kernel is the closure of the product of principal ideles and the connected component at infinity. Local units map onto the image of inertia, local uniformizers correspond to inverse arithmetic Frobenius, and the closure of each local image is the image of its decomposition group. Cohomology here is the quotient of all algebraic cocycles by coboundaries; the locally constant representative condition is imposed separately.