I am trying to understand the solution on how to compute the number of expectation to get three consecutive heads of a fair coin. The solutions says let $E$ be the expectation. Then $$ E = \frac{1}{2}E + \frac{1}{2} (E + 1) + \frac{1}{4} (E + 2) + \frac{1}{8} (E + 3) $$ and solving this equation one gets $E = 14$.
I am struggling to understand how this works. It seems that we just start at count $E$... any clarification appreciated.