There are several glasses in the drawer, and Xiaojun takes out half of them each time and puts one back in. In this way, he takes them 2012 times in total, and there are 2 glass balls in the drawer. How many glass balls are there in the drawer?
抽屉里有若干个玻璃杯，小军每次拿出其中的一半再放回一个，这样一共拿了2012次，抽屉里还有2个玻璃球．原来抽屉里有多少个玻璃球．
<gadget id="calculator">2 - 1</gadget>
<output>1</output>

<gadget id="calculator">2 * 1</gadget>
<output>2</output>

<gadget id="calculator">2 * 1 * 1</gadget>
<output>2</output>

<gadget id="calculator">2 * 1 * 1 * 1</gadget>
<output>2</output>

<gadget id="calculator">2 * 1 * 1 * 1 * 1</gadget>
<output>2</output>

<result>2</result>