There are several balls in a box. Mr. Wang took out half of the balls from the box for the first time, and then put in one ball, and took out half of the balls from the box for the second time, and put in one more ball, ..., and so on, a total of 2010 operations, Finally, there are two balls in the box. How many balls are there in the box before the ball is taken out?
一个箱子里有若干个小球．王老师第一次从箱子中取出半数的球，再放进去1个球，第二次仍从箱子中取出半数的球，再放进去1个球，…，如此下去，一共操作了2010次，最后箱子里还有两个球．则未取出球之前，箱子里有小球多少个．
<gadget id="calculator">2 - 1</gadget>
<output>1</output>

<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">1 - (1/2)</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">1 / (1/2)</gadget>
<output>2</output>

<result>2</result>