Let $F \subseteq \mathcal{P}(X)$ be a family of subsets of $X$. Then, it's easy to prove that there exists a minimal algebra of sets $\mathcal{A}$ that contains $F$, by putting all algebras on $X$ containing $F$ into a set and then taking its intersection. Also, if this $F$ is countable, then $\mathcal{A}$ is also countable, which is cleverly explained in Algebra generated by countable family of sets is countable?.
However, I'm having trouble proving the following property: if $|F| = n$, then $|\mathcal{A}| \leq 2^{2^n}$. I've tried "constructing" the algebra by taking all finite intersections of $F$ and adding them to $F$, then closing that set under complements, etc. etc, but it all gets too complicated after the second step. Is there a smart way to go about proving this inequality?