Gerry's rich uncle gave him $2 on his first birthday. On each birthday after that he doubled his previous gift. How much did the uncle give on Gerry's tenth birthday?